﻿using System;
using System.Collections.Generic;

namespace LabNet.Server.Domain
{
    public class Role
    {
        public long Id { get; set; }
        public string Name { get; set; }

        public DateTime? Created { get; set; }
        public DateTime? Updated { get; set; }
        public bool IsRemoved { get; set; }
        public long Creator { get; set; }
        public long Updater { get; set; }

        public bool Transient()
        {
            return Id.Equals(default(long));
        }

        public virtual ICollection<UserRole> Users { get; set; }

        public virtual ICollection<RoleGroup> Groups { get; set; }
       
    }
}
